home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 July / EnigmA AMIGA RUN 09 (1996)(G.R. Edizioni)(IT)[!][issue 1996-07 & 08][EARSAN CD VIII].iso / earcd / gui / gtldv376.lha / GadUtil / install.script < prev    next >
AmigaDOS Script File  |  1996-06-15  |  4KB  |  145 lines

  1. .key WHATTODO/A,EDITOR/K
  2.  
  3. ;------------------------ Install include files --------------------------
  4.  
  5. if <whattodo> eq "install"
  6.  
  7.   if $ToInstall not eq "1"                  ; If not C-includes only
  8.     if not exists "$AsmDir"                 ; Create main include directory
  9.         makedir "$AsmDir"
  10.     endif
  11.  
  12.     if not exists "$AsmDir/libraries"       ; Create libraries drawer for
  13.         makedir "$AsmDir/libraries"         ;  include files
  14.     endif
  15.  
  16.     copy include/libraries/gadutil.i "$AsmDir/libraries"
  17.  
  18.     if $AsmType eq "0"
  19.         copy include/libraries/gadutil_lib.i "$AsmDir/libraries"
  20.     else
  21.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd AS "$AsmDir/libraries/gadutil_lib.asm"
  22.     endif
  23.  
  24.   endif
  25.  
  26.   if $ToInstall not eq "0"                  ; If not Assembler includes only
  27.     if not exists "$CDir"                   ; Create main include directory
  28.         makedir "$CDir"
  29.     endif
  30.  
  31.     if not exists "$CDir/clib"              ; Create clib drawer
  32.         makedir "$CDir/clib"
  33.     endif
  34.  
  35.     if not exists "$CDir/libraries"         ; Create libraries drawer
  36.         makedir "$CDir/libraries"
  37.     endif
  38.  
  39.     if not exists "$CDir/pragmas"           ; Create pragmas drawer
  40.         makedir "$CDir/pragmas"
  41.     endif
  42.  
  43.     if not exists "$CDir/proto"             ; Create proto drawer
  44.         makedir "$CDir/proto"
  45.     endif
  46.  
  47.     copy include/clib/gadutil_protos.h "$CDir/clib"
  48.     copy include/libraries/gadutil.h "$CDir/libraries"
  49.     copy include/proto/gadutil.h "$CDir/proto"
  50.  
  51.     if $CType eq "0"
  52.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd SAS "$CDir/pragmas/gadutil_pragmas.h"
  53.         copy include/clib/gadutil_protos_SAS.h "$CDir/clib"
  54.     endif
  55.  
  56.     if $CType eq "1"
  57.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd DICE "$CDir/pragmas/gadutil_pragmas.h"
  58.     endif
  59.  
  60.     if $CType eq "2"
  61.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd AZTEC "$CDir/pragmas/gadutil_lib.h"
  62.     endif
  63.  
  64.     if $CType eq "3"
  65.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd MAXON "$CDir/pragmas/gadutil_pragmas.h"
  66.     endif
  67.  
  68.     if $CType eq "4"
  69.         ExtraCmds/fd2pragma include/FD/gadutil_lib.fd MAXON "$CDir/pragmas/gadutil_pragmas.h"
  70.     endif
  71.  
  72.   endif
  73. endif
  74.  
  75. ;----------------------- Remove installed files --------------------------
  76.  
  77. if <whattodo> eq "remove"
  78.  
  79.   if $ToInstall not eq "1"                  ; If not C-includes only
  80.     if exists "$AsmDir/libraries/gadutil.i"
  81.         delete QUIET "$AsmDir/libraries/gadutil.i"
  82.     endif
  83.  
  84.     if exists "$AsmDir/libraries/gadutil_lib.i"
  85.         delete QUIET "$AsmDir/libraries/gadutil_lib.i"
  86.     endif
  87.  
  88.     if exists "$AsmDir/libraries/gadutil_lib.asm"
  89.         delete QUIET "$AsmDir/libraries/gadutil_lib.asm"
  90.     endif
  91.   endif
  92.  
  93.   if $ToInstall not eq "0"                  ; If not Assembler includes only
  94.     if exists "$CDir/clib/gadutil_protos.h"
  95.         delete QUIET "$CDir/clib/gadutil_protos.h"
  96.     endif
  97.  
  98.     if exists "$CDir/libraries/gadutil.h"
  99.         delete QUIET "$CDir/libraries/gadutil.h"
  100.     endif
  101.  
  102.     if exists "$CDir/proto/gadutil.h"
  103.         delete QUIET "$CDir/proto/gadutil.h"
  104.     endif
  105.  
  106.     if exists "$CDir/pragmas/gadutil_pragmas.h"
  107.         delete QUIET "$CDir/pragmas/gadutil_pragmas.h"
  108.     endif
  109.  
  110.     if exists "$CDir/pragmas/gadutil_lib.h"
  111.         delete QUIET "$CDir/pragmas/gadutil_lib.h"
  112.     endif
  113.   endif
  114.  
  115. endif
  116.  
  117. ;------------------------ Edit function include files ----------------------
  118.  
  119. if <whattodo> eq "editfunc"
  120.  
  121.     if $ToInstall not eq "1"                ; If not C-includes only
  122.         <editor> include/libraries/GadUtil_Lib.i
  123.     endif
  124.  
  125.     if $ToInstall not eq "0"                ; If not Asm-Includes only
  126.         <editor> include/FD/gadutil_lib.fd
  127.         <editor> include/clib/gadutil_protos.h
  128.     endif
  129.  
  130. endif
  131.  
  132. ;--------------------------- Edit main include files -----------------------
  133.  
  134. if <whattodo> eq "editincl"
  135.  
  136.     if $ToInstall not eq "1"                ; If not C-includes only
  137.         <editor> include/libraries/gadutil.i
  138.     endif
  139.  
  140.     if $ToInstall not eq "0"                ; If not Asm-Includes only
  141.         <editor> include/libraries/gadutil.h
  142.     endif
  143.  
  144. endif
  145.